package com.humbleyuan.blogfront.entity.comment;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: HumbleYuan
 * @description: 点赞类
 * @Date: 2019/8/9
 * @Time: 11:37
 * @Version: 1.0
 */
@Data
public class Praise {
    /**
     * id
     */
    @JsonProperty("pId")
    private int pId;

    /**
     * 点赞对象id
     */
    private int targetId;

    /**
     * 类型：1.评论点赞 2.博客点赞(提前设定)
     */
    @JsonProperty("pType")
    private int pType;

    /**
     * 点赞人id
     */
    @JsonProperty("vUserId")
    private Integer vUserId;

    /**
     * 点赞时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("pCommitTime")
    private Date pCommitTime;

    /**
     * 0:取消赞 1:有效赞
     */
    private int status;
}
